//
//  ZCVoiceView.m
//  ZCBaiSi
//
//  Created by zc on 2016/11/3.
//  Copyright © 2016年 zc. All rights reserved.
//

#import "ZCVoiceView.h"
#import "ZCTopic.h"
#import <UIImageView+WebCache.h>
@interface ZCVoiceView()
@property (weak, nonatomic) IBOutlet UILabel *playCountLabel;
@property (weak, nonatomic) IBOutlet UIImageView *imageView;
@property (weak, nonatomic) IBOutlet UILabel *voiceTimeLabel;
@end
@implementation ZCVoiceView

- (void)awakeFromNib{
    [super awakeFromNib];
    //从xib中加载进来的控件的autoresizingMask默认是宽度和高度
    self.autoresizingMask = UIViewAutoresizingNone;
}

- (void)setTopic:(ZCTopic *)topic{
    [self.imageView sd_setImageWithURL:[NSURL URLWithString:topic.image2]];
}

@end
